/* 
 * File:   Parametres.h
 * Author: Gab'z
 *
 * Created on 10 mai 2012, 14:57
 */

#ifndef PARAMETRES_H
#define	PARAMETRES_H

enum class TypeConstante {
    entier, rationnel, reel
};

enum class UniteAngle {
    degre, radian
};

class Parametres {
    static Parametres* instance;
    TypeConstante typeConstante;
    UniteAngle uniteAngle;
    bool modeComplex;
    bool clavierVisible;
    int nbConstanteAffiche;

public:

    static Parametres* getInstante() {
        if (instance == 0) {
            instance = new Parametres();
        }
        return instance;
    }

    static void deleteInstance() {
        if (instance != 0) {
            delete instance;
        }
    }
private:
    Parametres();
    Parametres(const Parametres& orig);
    virtual ~Parametres();
};



#endif	/* PARAMETRES_H */

